<%--
  Created by IntelliJ IDEA.
  User: liuqing
  Date: 2024/11/17
  Time: 17:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>forgetPassword</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-3.7.1.min.js"></script>
    <style>
        .wrapper .form-wrapper.forgot-password {
            transform: scale(1) translate(0, 0);
            opacity: 1;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <div class="form-wrapper forgot-password">
        <form action="UserForgetPassword" method="post">
            <h2>忘记密码</h2>
            <div class="input-group">
                <!-- <input type="text" placeholder="用户名" id="username"> -->
                <!-- required：这个属性是一个布尔属性，表示该输入框是必填项 -->
                <input type="text"  id="username2" name="username2" required>
                <label for="username2">用户名</label>
            </div>
            <div class="input-group">
                <input type="password" id="password2" name="password2" required>
                <label for="password2">新密码</label>
            </div>
            <div class="input-group">
                <input type="password" id="repeatPassword" name="repeatPassword" required>
                <label for="repeatPassword">重复密码</label>
            </div>
            <button type="submit">确 定</button>
            <div class="signUp-link">
                <p><a href="login.jsp" class="forgotPasswordReturn-link">返回登录</a></p>
            </div>
        </form>
    </div>
</div>
<%
    String msg =(String) request.getAttribute("msg");
    if (msg!=null){
        request.removeAttribute("msg");
%>
<script type="text/javascript">
    window.onload = function() {
        alert("<%=msg%>");
    };
</script>
<%
    }
%>
</body>
</html>
